# vim: ft=dockerfile
FROM ubuntu:14.04
MAINTAINER Ian Cordasco <graffatcolmingov@gmail.com>

RUN apt-get update && \
    apt-get install -y \
        autoconf \
        build-essential \
        git \
        libtool \
        vim && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir /libyaml
COPY . /libyaml/
WORKDIR /libyaml

ENV LD_LIBRARY_PATH=/libyaml/src/.libs

RUN ./bootstrap
RUN ./configure
RUN make
RUN make install
CMD ["bash"]
